class OrderSaleListModel {
  List<OrderSaleListItem>? list;
  int? pageNum;
  int? pageSize;
  int? total;
  int? totalPage;

  OrderSaleListModel({
    this.list,
    this.pageNum,
    this.pageSize,
    this.total,
    this.totalPage,
  });

  OrderSaleListModel.fromJson(Map<String, dynamic> json) {
    list =
        json["list"] == null
            ? null
            : (json["list"] as List)
                .map((e) => OrderSaleListItem.fromJson(e))
                .toList();
    pageNum = json["pageNum"];
    pageSize = json["pageSize"];
    total = json["total"];
    totalPage = json["totalPage"];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    if (list != null) {
      _data["list"] = list?.map((e) => e.toJson()).toList();
    }
    _data["pageNum"] = pageNum;
    _data["pageSize"] = pageSize;
    _data["total"] = total;
    _data["totalPage"] = totalPage;
    return _data;
  }
}

class OrderSaleListItem {
  String? collectionName;
  int? count;
  String? coverImageUrl;
  String? createTime;
  String? daoName;
  int? id;
  String? orderCode;
  String? orderStatus;
  String? payPrice;
  String? productLocation;
  String? productType;
  String? tokenId;

  OrderSaleListItem({
    this.collectionName,
    this.count,
    this.coverImageUrl,
    this.createTime,
    this.daoName,
    this.id,
    this.orderCode,
    this.orderStatus,
    this.payPrice,
    this.productLocation,
    this.productType,
    this.tokenId,
  });

  OrderSaleListItem.fromJson(Map<String, dynamic> json) {
    collectionName = json["collectionName"];
    count = json["count"];
    coverImageUrl = json["coverImageUrl"];
    createTime = json["createTime"];
    daoName = json["daoName"];
    id = json["id"];
    orderCode = json["orderCode"];
    orderStatus = json["orderStatus"];
    payPrice = json["payPrice"];
    productLocation = json["productLocation"];
    productType = json["productType"];
    tokenId = json["tokenId"];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["collectionName"] = collectionName;
    _data["count"] = count;
    _data["coverImageUrl"] = coverImageUrl;
    _data["createTime"] = createTime;
    _data["daoName"] = daoName;
    _data["id"] = id;
    _data["orderCode"] = orderCode;
    _data["orderStatus"] = orderStatus;
    _data["payPrice"] = payPrice;
    _data["productLocation"] = productLocation;
    _data["productType"] = productType;
    _data["tokenId"] = tokenId;
    return _data;
  }
}
